package com.mylearn.myblog.service;

import com.mylearn.myblog.entity.Blog;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;

public interface BlogService {

	Blog getBlog(Long id);

	Page<Blog> listBlog(Pageable pageable,Blog blog);

	Blog saveBlog(Blog blog);

	Blog updateBlog(Long id, Blog blog);

	void deleteBlog(Long id);

	Blog getBlogByTitle(String title);
}
